#include <stdlib.h>
#include "iobot.h"
#include "turtle.h"
#include "syscall.h"

extern iobot_t* cmdbot;
extern iobot_t* dirbot;
extern iobot_t* infobot;

extern char* input;
extern char* command;
extern char* param;
extern char* working_dir;

int turtle_destroy()
{
	iobot_destroy(cmdbot);
	iobot_destroy(dirbot);

	if(input) free(input);
	if(command) free(command);
	if(param) free(param);
	if(working_dir) free(working_dir);

	return 1;
}
